﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ViewbyUserIDDT.aspx.cs" Inherits="ViewbyProduct_Interim_ViewbyUserIDDT" Title="按测试员检索调试测试数据" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div>
    <div>
        <br />
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
        <div style="width: 80%; clear:left; float:left;">
        <div>
            测试员工号：<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="TextBox1" ErrorMessage="*" ValidationGroup="VGroup1"></asp:RequiredFieldValidator><asp:HyperLink ID="HyperLink5" runat="server" 
            NavigateUrl="~/ViewbyProduct/Details/AllTester.aspx">查看所有测试员工</asp:HyperLink></div>
        <br />
        <div>        
                起始时间：<asp:TextBox ID="TextBox2" runat="server" AutoPostBack="True"></asp:TextBox><asp:CalendarExtender ID="TextBox1_CalendarExtender" runat="server" 
                    Enabled="True" TargetControlID="TextBox2">
                </asp:CalendarExtender>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                终止时间：<asp:TextBox ID="TextBox3" runat="server" AutoPostBack="True" 
                    Style="vertical-align: top"></asp:TextBox><asp:CalendarExtender ID="TextBox2_CalendarExtender" runat="server" 
                    Enabled="True" TargetControlID="TextBox3">
                </asp:CalendarExtender> 
         </div> 
        </ContentTemplate>      
        </asp:UpdatePanel> 
        
         </div>           
         <div style="width: 15%; float:left; clear:right ">                    
                <br />
                <br />
                <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="查  询" />
                <br />
                <br />
                <br />
        </div>
        <br />
        <br />
        <div style=" clear:both;">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 测试腔体数为：<asp:Label ID="Label1" runat="server"></asp:Label></div>
        
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
    <ContentTemplate>
        <div style=" clear:both;">
        <table style="width: 100%; height: 381px">
        <tr>
            <td style="width: 110px; height: 22px; vertical-align: top;">
        <asp:Label ID="Label2" runat="server" Height="12px" Text="查询结果:" Width="148px"></asp:Label></td>
        </tr>
        <tr>
            <td style="vertical-align: top; width: 100%">
        <asp:GridView ID="GridView1" runat="server" CellPadding="3" GridLines="None"
            OnSelectedIndexChanged="GridView1_SelectedIndexChanged" 
                    AutoGenerateColumns="False" DataKeyNames="ProductSN,TestTime,ProductTypeID,UserID,ENAID,SpecVersion,IsPass" 
                    EmptyDataText="没有相关数据！" BackColor="White" BorderColor="White" 
                    BorderStyle="Ridge" BorderWidth="2px" CellSpacing="1" AllowPaging="True" 
                    OnPageIndexChanging="GridView1_PageIndexChanging" Width="100%" 
                    PageSize="20">
            <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
            <Columns>
                <asp:CommandField SelectText="详细" ShowSelectButton="True" HeaderText="选择" />
                <asp:HyperLinkField DataNavigateUrlFields="ProductSN" 
                    DataNavigateUrlFormatString="~/ViewbyProduct/ViewProductState/ProductSNLifeTime.aspx?ProductSN={0}" 
                    DataTextField="ProductSN" HeaderText="腔体序列号" 
                    NavigateUrl="~/ViewbyProduct/ViewProductState/ProductSNLifeTime.aspx" 
                    Text="ProductSN" />
                <asp:BoundField DataField="TestTime" HeaderText="测试时间" />
                <asp:BoundField DataField="ProductTypeID" HeaderText="产品类型编号" />
                <asp:BoundField DataField="UserID" HeaderText="测试员工号" />
                <asp:BoundField DataField="ENAID" HeaderText="矢网编号" />
                <asp:BoundField DataField="SpecVersion" HeaderText="指标单版本" />
                <asp:BoundField DataField="IsPass" HeaderText="是否通过" />
            </Columns>
            <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
            <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
        </asp:GridView>
            </td>
        </tr>
    </table>
    </div>
    </ContentTemplate> 
    </asp:UpdatePanel> 
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
</div>
</asp:Content>

